package com.woniu.smart.service;

import com.woniu.smart.dto.EquipmentDTO;
import com.woniu.smart.entity.Equipment;
import com.woniu.smart.vo.EquipmentVO;

import java.util.List;

public interface EquipmentService {
    /**
     * @Description 批量删除选中
     * @date  14:49:44
     * @author PC
     * @param list
     * @return: int
     */
    int deleteAll(List list);
    /**
     * @Description 查询所有设备
     * @date  19:12:58
     * @author PC
     * @param
     * @return: java.util.List<com.woniu.smart.vo.EquipmentVO>
     */
    List<EquipmentVO> selectAll(EquipmentDTO equipmentDTO);
    /**
     * @Description 查询总条数
     * @date  19:12:21
     * @author PC
     * @param equipmentDTO
     * @return: int
     */
    Long selectCount(EquipmentDTO equipmentDTO);
    /**
     * @Description 根据id查询设备
     * @date  19:13:16
     * @author PC
     * @param id
     * @return: com.woniu.smart.vo.EquipmentVO
     */
    EquipmentVO selectById(Long id);
    int deleteByPrimaryKey(Long id);

    int insert(Equipment record);

    int insertSelective(Equipment record);

    Equipment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Equipment record);

    int updateByPrimaryKey(Equipment record);
}
